home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 772 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: news.oanet.com!usenet
  2. From: rolleman@freenet.edmonton.ab.ca
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Need help with buttons!
  5. Date: Sat, 06 Jan 1996 21:32:21 GMT
  6. Organization: Central News Services
  7. Message-ID: <4cmvgh$75p@hermes.oanet.com>
  8. References: <4ckad5$13pg@news.gate.net>
  9. NNTP-Posting-Host: dh.oanet.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. debmcd@isysfla.com wrote:
  13.  
  14. >I am writing a Windows multimedia program in Visual C++...
  15.  
  16. >In this program, there is a button that when pressed, will execute functions that take some time to complete.  While this 
  17. >execution is occuring, I don't want the user to be able to press the button again.  Does any one know of a way to lock out all 
  18. >mouse clicks until certain commands are finished executing????
  19.  
  20. >(I have tried changing to the WAIT icon and disabling, or graying, the button as well as the entire window...this does not help.  
  21. >When this was done, all mouse click-messages are sent to the queue and still processed when the previous execution is 
  22. >complete.)  For example, if the button were to play an audio clip when pressed, and the user clicks the mouse over the button 
  23. >again, before the audio clip is finished, the audio clip would play again--and I don't want this!
  24.  
  25. >Please help!!
  26.  
  27. >Thank you!
  28.  
  29. >D. McDonough
  30.  
  31.  
  32. Handle the messages yourself after the funtion has completed the task 
  33.  
  34. Dave Rolleman            rolleman@freenet.edmonton.ab.ca
  35.  
  36.